package com.tyk.bookstore.back.system.repository;

import com.tyk.bookstore.back.common.dal.mapper.IMapper;
import com.tyk.bookstore.back.system.model.dto.UserInfoDto;
import com.tyk.bookstore.back.system.model.dto.User4LoginCheckDto;
import com.tyk.bookstore.back.system.model.entity.UserDo;
import com.tyk.bookstore.back.system.model.query.User4LoginCheckQuery;
import com.tyk.bookstore.back.system.model.vo.UserVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserRepository extends IMapper<UserDo> {

	User4LoginCheckDto selectUserByPrincipal(@Param("query") User4LoginCheckQuery query);

	UserInfoDto selectGetUserInfoVo(@Param("userId") Long loginId);

    UserVo selectGetUserByIdVo(@Param("userId") Long id);
}
